<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>添加应急知识</title>

<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/bootstrap-3.3.5-dist/css/bootstrap.min.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/bootstrap-3.3.5-dist/css/bootstrap-theme.min.css">

<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/static/bootstrap-3.3.5-dist/css/bootstrap.css" />
<link
	href="${pageContext.request.contextPath}/static/ueditor/themes/default/css/ueditor.css"
	type="text/css" rel="stylesheet">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/static/ueditor/ueditor.config.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/static/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/static/ueditor/ueditor.all.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/static/ueditor/lang/zh-cn/zh-cn.js"></script>
<script
	src="${pageContext.request.contextPath}/static/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
<script
	src="${pageContext.request.contextPath}/static/js/jquery-1.12.1.js"></script>
<script type="text/javascript">
	
</script>
</head>
<body>
	<div class="row-fluid" style="margin-top: 10px;">
		<div class="col-md-6">
			<div class="container">
				<h3>添加应急知识</h3>
				<form role="form" class="form-horizontal"
					action="${pageContext.request.contextPath}/reporters/updateknowledgeReportersAction "
					method="post" id="checkForm">
					<div class="form-group ">
						<label class="col-md-1 control-label" for="title">标题</label>
						<div class="col-md-9">
							<input class="form-control" name="kbean.title"
								value="${bean.title }" type="text" id="title" />
						</div>
					</div>
					<div class="form-group ">
						<label class="col-md-1 control-label" for="eventDesc">副标题</label>
						<div class="col-md-9">
							<input class="form-control" name="kbean.eventDesc"
								value="${bean.eventDesc }" type="text" />
						</div>
					</div>
					<div class="form-group ">
						<label class="col-md-1 control-label" for="eventDesc">类型</label>
						<div class="col-md-9">
							<select class="form-control" name="kbean.knowType">
								<c:choose>
									<c:when test="${bean.knowType=='基础知识'}">
										<option value="基础知识">基础知识</option>
									</c:when>
									<c:when test="${bean.knowType=='法制知识'}">
										<option value="法制知识">法制知识</option>
									</c:when>
									<c:when test="${bean.knowType=='应急预案' }">
										<option value="应急预案">应急预案</option>
									</c:when>
									<c:when test="${bean.knowType=='应急自救' }">
										<option value="应急自救">应急自救</option>
									</c:when>
									<c:otherwise>
										<option value="">请选择应急知识类型</option>
										<option value="基础知识">基础知识</option>
										<option value="法制知识">法制知识</option>
										<option value="应急预案">应急预案</option>
										<option value="应急自救">应急自救</option>
									</c:otherwise>
								</c:choose>
							</select>
						</div>
					</div>
					<div class="form-group ">
						<label class="col-md-1 control-label" for="source">来源</label>
						<div class="col-md-9">
							<input class="form-control" name="kbean.source"
								value="${bean.source }" type="text" />
						</div>
					</div>

					<div class="form-group">
						<label class="col-md-1 control-label" for="name">内容</label>
						<div class="col-md-9"
							style="width: 800px; margin: 20px auto 40px;">
							<textarea name="kbean.content" id="myEditor">${bean.content}</textarea>
						</div>
					</div>
					<div class="form-group ">
						<input class="form-control" name="kbean.userBean.id"
							value="${bean.userBean.id }" type="hidden" /> 
							<input type="hidden" name="kbean.id" value="${bean.id }">
					</div>

					<div class="form-group col-md-12">
						<div class="col-md-offset-2 col-md-10">
							<button type="submit" id="subt" class="btn btn-primary btn-sm">提交</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
	<script type="text/javascript">
		var editor = new UE.ui.Editor();
		editor.render("myEditor");
	</script>
</body>
</html>